# -*- coding: utf-8 -*-
from scpy.logger import get_logger
import os
import sys
import tornado

reload(sys)
sys.setdefaultencoding('utf-8')

logger = get_logger(__file__)

CURRENT_PATH = os.path.dirname(__file__)
if CURRENT_PATH:
    CURRENT_PATH = CURRENT_PATH + "/"

def make_url(filePath):
    return os.path.join(CURRENT_PATH,filePath)


class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("Hello, world")


class TemplateHandler(MainHandler):
    def get(self):
        items = ["Item 1", "Item 2", "Item 3"]
        self.render("template_test.html", title="My title", items=items)


class TestHandler(MainHandler):
    def get(self):
        self.render("index.html")


if __name__ == '__main__':
    pass